//
//  YBMineUserGroupPopupVC.swift
//  Moonlight
//
//  Created by Penlon Kim on 2023/7/1.
//  Copyright © 2023 Moonlight Game Streaming Project. All rights reserved.
//

import UIKit
import SnapKit

class YBMineUserGroupPopupVC: BaseMaskVC {
    
    deinit {
        PPP("[\(NSStringFromClass(type(of: self)))]>>>已被释放")
    }
    
    // MARK: Lifecycle
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.addSubviews([popupView, topImgView])
        popupView.snp.makeConstraints { make in
            make.center.equalToSuperview()
        }
        
        topImgView.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.centerY.equalTo(popupView.snp.top)
            make.size.equalTo(65)
        }
        
    }
    
    // MARK: - lazy
    private lazy var popupView: YBMineUserGroupPopupView = {
        let view = YBMineUserGroupPopupView()
        view.bk_addCornerBorder(radius: 10, borderWidth: 0.1, borderColor: .clear)
        return view
    }()
    
    private lazy var topImgView: UIImageView = {
        let iv = UIImageView(image: UIImage(named: "launch"))
        iv.bk_addCornerBorder(radius: 65/2, borderWidth: 0.1, borderColor: .clear)
        iv.contentMode = .scaleAspectFill
        iv.clipsToBounds = true
        return iv
    }()
    
}
